Remove the directory-community feature and its MCP tools - #9
Merged
Conversation
Module cohesion (community) was a coarse directory-based rollup with no effect on retrieval or relation lookup (edges + ref annotations already cover those), and it was the weakest-value feature per its cost. Remove: - internal/analysis/community and the CommunityBuilder DI/interface. - The community rebuild steps in build_or_update_graph and run_postprocess. - The list_communities, get_community, and get_architecture_overview MCP tools plus their handler_graph handlers and response types. - The community entries in get_minimal_context's tool suggestions. run_postprocess keeps communities_count (always 0) for wire compatibility. MCP tools: 31 -> 28. Full suite green. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The project's purpose is annotation + graph + search for preserving code
context, not code-quality metrics. The large-function, dead-code, coupling,
and coverage analyzers were off-purpose, so drop them end to end:
- delete internal/analysis/{largefunc,deadcode,coupling,coverage}
- remove find_large_functions and find_dead_code MCP tools (28 -> 26)
- drop the architecture_map prompt (community + coupling) and the
coverage/dead-code/large-function sections from review_changes,
onboard_developer, and pre_merge_check
- remove the 4 analyzer Deps fields, DI wiring, and interface assertions
- prune dead request DTOs and decoders in handler_analysis_io.go
- update tests and guide/skill docs to match the reduced tool set
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Removes the directory-based community feature. Communities grouped nodes by directory for module-cohesion views, but that's off the project's core purpose (annotation + graph + search for preserving code context), and the derived cohesion signal duplicated what
@see/@refannotations and the call graph already express.Changes
internal/analysis/community.list_communities,get_community, andget_architecture_overviewMCP tools.Verification
go build+go vetclean;go test -tags fts5 ./...green.First of a two-PR stack;
refactor/remove-quality-analyzersstacks on top.🤖 Generated with Claude Code